import request from '@/utils/request'

// 查询团队组员信息列表
export function listTeamGroupMember(query) {
  return request({
    url: '/ndpf/teamGroupMember/list',
    method: 'get',
    params: query
  })
}

// 查询团队组员信息详细
export function getTeamGroupMember(gmemberId) {
  return request({
    url: '/ndpf/teamGroupMember/' + gmemberId,
    method: 'get'
  })
}

// 新增团队组员信息
export function addTeamGroupMember(data) {
  return request({
    url: '/ndpf/teamGroupMember',
    method: 'post',
    data: data
  })
}

// 修改团队组员信息
export function updateTeamGroupMember(data) {
  return request({
    url: '/ndpf/teamGroupMember',
    method: 'put',
    data: data
  })
}

// 删除团队组员信息
export function delTeamGroupMember(gmemberId) {
  return request({
    url: '/ndpf/teamGroupMember/' + gmemberId,
    method: 'delete'
  })
}
